<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>input属性</title>
  </head>
  <body>
    <!-- 1）autocomplete：自动完成 -->
    <form action="#">
      <input type="text" name="username" autocomplete="on" />
      <input type="submit" />
    </form>

    <!-- 2）自动获得焦点 -->
    <form action="#">
      <input
        type="password"
        name="username1-password"
        autocomplete="off"
        autofocus
      />
      <input type="submit" />
    </form>

    <!-- 3.placeholder：输入提示 -->
    <form action="#">
      <input type="text" name="username" placeholder="请输入用户名：" /><br />
      密码:<input type="password" name="userpwd" /><br />
      <label>联系方式:<input type="tel" placeholder="请输入联系方式:" /></label>
      <input type="submit" />
    </form>
  </body>
</html>
